package com.service;

import com.domain.Orderinfo;
import com.mapper.OrderinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderinfoServiceImpl implements OrderinfoService{

    @Autowired
    private OrderinfoMapper orderinfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer orderid) {
        return orderinfoMapper.deleteByPrimaryKey(orderid);
    }

    @Override
    public int insert(Orderinfo record) {
        return orderinfoMapper.insert(record);
    }

    @Override
    public int insertSelective(Orderinfo record) {
        return orderinfoMapper.insertSelective(record);
    }

    @Override
    public Orderinfo selectByPrimaryKey(Integer orderid) {
        return orderinfoMapper.selectByPrimaryKey(orderid);
    }

    @Override
    public int updateByPrimaryKeySelective(Orderinfo record) {
        return orderinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Orderinfo record) {
        return orderinfoMapper.updateByPrimaryKey(record);
    }
    @Override
    public List<Orderinfo> selectByAll() {
        return orderinfoMapper.selectByAll();
    }

}
